#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main() {
    int n;
    scanf("%d", &n);
    int b = 2;
    b = b << (n - 1);
    printf("%d", b);
    return 0;
}